package com.cm.caseManagement.dao;

import com.cm.caseManagement.pojo.entity.CmAdvanceDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 垫付明细Mapper接口
 *
 * @author ruoyi
 * @date 2025-10-05
 */
@Mapper
public interface CmAdvanceDetailMapper
{
    /**
     * 查询垫付明细
     *
     * @param id 垫付明细主键
     * @return 垫付明细
     */
    public CmAdvanceDetail selectCmAdvanceDetailById(Long id);

    /**
     * 查询垫付明细列表
     *
     * @param cmAdvanceDetail 垫付明细
     * @return 垫付明细集合
     */
    public List<CmAdvanceDetail> selectCmAdvanceDetailList(CmAdvanceDetail cmAdvanceDetail);

    /**
     * 新增垫付明细
     *
     * @param cmAdvanceDetail 垫付明细
     * @return 结果
     */
    public int insertCmAdvanceDetail(CmAdvanceDetail cmAdvanceDetail);

    /**
     * 修改垫付明细
     *
     * @param cmAdvanceDetail 垫付明细
     * @return 结果
     */
    public int updateCmAdvanceDetail(CmAdvanceDetail cmAdvanceDetail);

    /**
     * 删除垫付明细
     *
     * @param id 垫付明细主键
     * @return 结果
     */
    public int deleteCmAdvanceDetailById(Long id);

    /**
     * 批量删除垫付明细
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCmAdvanceDetailByIds(Long[] ids);
}
